<div class="layui-side-scroll">
    <ul class="layui-nav layui-nav-tree ">
        @if(!empty($permission_menus['child']))
            @foreach($permission_menus['child'] as $menu)
                <li class="layui-nav-item layui-nav-itemed">
                    <a data-target-tips="商城配置" style="background:#393D49">
                        <span class='nav-icon layui-hide layui-icon layui-icon-triangle-d'></span>
                        <span class="nav-text padding-left-5">{{ $menu['name'] }} </span>
                    </a>
                    <dl class="layui-nav-child">
                        @if(!empty($menu['child']))
                            @foreach($menu['child'] as $item)
                                <dd class="{{ isset($path) && $path == $item['rule'] ? "layui-this" : "" }}">
                                    <a href="{{ $item['rule'] }}">
                                        <span class='nav-icon padding-left-5 {{ $item['icon'] }}'></span>
                                        <span class="nav-text padding-left-5">{{ $item['name'] }}</span>
                                    </a>
                                </dd>
                            @endforeach
                        @endif
                    </dl>
                </li>
            @endforeach
        @endif
    </ul>
</div>
